<center>
  <h2>
    <%= @month_year %>
  </h2>
</center>
<center>
  <div id="ajax_bills">
    <%= render :partial=>"list", :locals=>{:bills=>@bills} %>
  </div>
  <br/>
</center>
<p id="add_link">
  <center>
    <%=button_to_function "Add new bill", visual_effect(:toggle_slide, "add_bill",:duration => 1)%>
  </center>
</p>
<div id="add_bill" style="display:none;">
  <% form_remote_tag(:url => {:action => 'create'},
    :update => "bill_list", :position => :bottom,
    :html => {:id => 'bill_form'}) do %>
    <br/>
    Bill date:<%= calendar_date_select "bill","bill_date", :size=> '15' %>
    Item Code:<%= collection_select(:bill,:description,
      @items, :description, :item_code_description, :class =>"Item") %>
    Amount: <%= text_field "bill", "amount",:size=> '10' %>
    <%= submit_tag 'Add' %>
  <% end %>
</div>
<br/>
<center>
  <%= link_to 'Index', :action=> "index" %>|<%= link_to 'Freeze', :action=> "freeze" %>|<%= link_to 'Export2Excel', :action=> "save" %>
</center>

